import http from '@/api/request.js'

//后台登录

export default function () {
  return {
    login: (data) => {
      //登录接口
      return http.post('/backend/admin/user/login', data)
    },
    register: (data) => {
      //注册接口
      return http.post('/backend/admin/user/create', data)
    }
  }
}
